package cn.wolfcode.rbac.mapper;

import cn.wolfcode.rbac.domain.Permission;
import java.util.List;

public interface PermissionMapper {
    //按主键id删除权限
    int deleteByPrimaryKey(Long id);

    //增加权限
    int insert(Permission record);

    //按主键id查询权限
    Permission selectByPrimaryKey(Long id);

    //查询所有权限
    List<Permission> selectAll();

    //修改权限
    int updateByPrimaryKey(Permission record);
}